package com.idp.common.constants;

/**
 * 系统常量
 * @author xubinren
 * @version 1.0
 * @date 2018/2/26
 */
public interface Constants {

    /**
     * 正常
     */
    int RESPONSE_CODE_200 = 200;
    /**此条数据不可被修改*/
    String RESPONSE_MESSAGE_200 = "success";

    /**
     * 参数错误
     */
    int RESPONSE_CODE_400 = 400;
    String RESPONSE_MESSAGE_400 = "parameter error";

    int RESPONSE_CODE_401 = 401;
    String RESPONSE_MESSAGE_401 = "未登录";

    int RESPONSE_CODE_403 = 403;
    String RESPONSE_MESSAGE_403 = "无权限执行此操作";

    /**
     * 没有找到对应的路径
     */
    int RESPONSE_CODE_404 = 404;
    String RESPONSE_MESSAGE_404 = "resource not found";

    int RESPONSE_CODE_405 = 405;
    String RESPONSE_MESSAGE_405 = "No resource method found for POST";

    int RESPONSE_CODE_408 = 408;
    String RESPONSE_MESSAGE_408 = "请求超时";

    int RESPONSE_CODE_409 = 409;
    String RESPONSE_MESSAGE_409 = "请重试";

    /**
     * 服务器未知错误
     */
    int RESPONSE_CODE_500 = 500;
    String RESPONSE_MESSAGE_500 = "服务器系统内部错误";

    int RESPONSE_CODE_518 = 518;
    String RESPONSE_MESSAGE_518 = "登录超时";

    /**
     * 数据库错误
     */
    int RESPONSE_CODE_600 = 600;

    String RESPONSE_MESSAGE_600 = "数据库操作过程错误";

    int RESPONSE_CODE_601 = 601;

    String RESPONSE_MESSAGE_601 = "数据库记录已存在";

    int RESPONSE_CODE_602 = 602;

    String RESPONSE_MESSAGE_602 = "操作的记录不存在";

    int RESPONSE_CODE_603 = 603;

    String RESPONSE_MESSAGE_603 = "被扫描的对象不存在";

    int RESPONSE_CODE_604 = 604;

    String RESPONSE_MESSAGE_604 = "数据库记录为错误数据";

    int RESPONSE_CODE_605 = 605;

    String RESPONSE_MESSAGE_605 = "数据保存失败";

    int RESPONSE_CODE_606 = 606;

    String RESPONSE_MESSAGE_606 = "数据更新失败";

    int RESPONSE_CODE_607 = 607;

    String RESPONSE_MESSAGE_607 = "此数据不可操作";

    /**
     * 登录提示
     */
    int RESPONSE_CODE_300 = 300;

    String RESPONSE_MESSAGE_300 = "请先登录";

    /**
     * 用户信息不存在
     */
    int RESPONSE_CODE_301 = 301;

    String RESPONSE_MESSAGE_301 = "用户信息不存在";

    /**
     * 登录提示
     */
    int RESPONSE_CODE_302 = 302;

    String RESPONSE_MESSAGE_302 = "账户或密码错误，请重新输入";

}
